“ODFDraw Sample” and “ODFDraw Sample Script” demonstrate a portion of the scripting support provided in the ODFDraw sample part editor. ODFDraw sample is an empty draw document. ODFDraw Sample is an AppleScript script that drives the ODFDraw Sample document. The sample script demonstrates the creation and modification of various types of draw elements using a variety of AppleScript specificier forms.
To view the sample, first install AppleScript, OpenDoc and ODF on your Macintosh. Once you've done this, open the ODFDraw Sample document. It is important that you open the document before opening the script. Once the document is open, open the script. Click on the “Run” button in the AppleScript window called “ODFDraw Sample Script.” Once you've watched the script execute, you may want to read the contents of the script to get a sense of how scripting works using ODF and ODFDraw. For information on implementing scripting support in your part, consult the document in this distribution titled, “ODF Scripting Overview.”